<template>
  <div>
    <router-view></router-view>
    <!-- 这里修改路由配置，添加是否显示导航条字段 -->
    <Navbar v-if="$route.meta.requireFooter"/>
  </div>
</template>
<script>
import Navbar from './components/Navbar/Navbar'
import {mapActions} from 'vuex'
export default {
  name: 'App',
  components: {
    Navbar
  },
  methods: {
    ...mapActions([
      'GetUser'
    ])
  },
  mounted() {
    //自动登录
    this.GetUser()
    console.log('我执行了')
  },
  
}
</script>
<style>
</style>
